const prog = require("commander");
const {
	turnAction,
	showConfigAction,
	setModAction,
	setThemeAction,
} = require("./actions");
const { generatorStyleConfig } = require("../utils/generator");
function command() {
	prog.program
		.command("turn")
		.description(
			"将 sourcepath 目录下的 md 文件转换成漂亮的 html 文件并输出到 outpath 目录下"
		)
		.action(turnAction);
	prog.program
		.command("generator <mod>")
		.description("根据指定的 mod 路径生成配置文件")
		.action(generatorStyleConfig);
	prog.program
		.command("show")
		.description("列出所有的配置")
		.action(showConfigAction);
	prog.program
		.command("smod <modepath>")
		.description("设置自定义样式路径")
		.action(setModAction);
	prog.program
		.command("stheme <sthemepath>")
		.description("设置预设主题路径")
		.action(setThemeAction);
}
module.exports = command;
